package com.ljt;

public class Main {
    static class Test {
        public int meathod(){
            static int i =0;
            i++;
            return i;
        }
    }
    public static void main(String[] args) {
        Test test = new Test();
        test.meathod();
        int j = test.meathod();
        System.out.println("j = " + j);//其实会报错
    }
}